<?php
	require_once('../include/global.php');
	
	$email = $_POST['email'];
	$password = md5($_POST['password']); 
	if(!$user->login($email, $password)) {
		echo false;
	} else {
		echo $user->name.' '.$user->surname;
	}
?>